package com.my.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 有Date类型属性的User
 */
public class UserB {
    private String name;
    private int age;
    private Date birthday;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "UserB{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", birthday='" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(birthday) + '\'' +
                '}';
    }
}
